package com.itheima.capsulation;

public class TeacherOperator {
    //私有成员变量
    private Teacher teacher;

    public TeacherOperator() {
    }

    public TeacherOperator(Teacher teacher) {
        this.teacher = teacher;
    }
    public void printInfo(){
        System.out.println(teacher.getName()+"的年龄是"+teacher.getAge());
    }
}
